#ifndef _MK_RW_LOCK_H
#define _MK_RW_LOCK_H
#include "MkTypes.h"
#ifdef _WIN32
#include <shared_mutex>
#else
#include <pthread.h>
#endif

class CMkRwLock
{
public:
	CMkRwLock();
	~CMkRwLock();

public:
	void RLock();
	void RUnlock();
	void WLock();
	void WUnlock();
private:
#ifdef _WIN32
	//SRWLOCK				m_mutex;
    std::shared_mutex          m_mutex;
#else
	pthread_rwlock_t	m_mutex;
#endif
};





#endif
